﻿#ifndef ACCOUNTBOOKMAIN_H
#define ACCOUNTBOOKMAIN_H

#include <QWidget>
#include <QPushButton>
#include <QDebug>
#include "AccountBookDBManage.h"
#include "AccountBookAdd.h"

QT_BEGIN_NAMESPACE
namespace Ui { class AccountBookMain; }
QT_END_NAMESPACE

class AccountBookMain : public QWidget
{
    Q_OBJECT

public:
    AccountBookMain(QWidget *parent = nullptr);
    ~AccountBookMain();

private slots:
    void slotBottomBtnClicked();
    void slotReturnMainPage();
    void slotUpdateView();


private:
    Ui::AccountBookMain *ui;
    QList<QPushButton *> m_lstBottomBtn;  // 底部功能切换按钮

    AccountBookAdd *m_accountBookAdd;  // 账单添加页面

signals:
    void sigAddAccount();
};
#endif // ACCOUNTBOOKMAIN_H
